package org.arain.baseii.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.arain.baseii.pojo.SysResource;
import org.arain.baseii.pojo.SysResourceExample;

public interface SysResourceMapper {
    int countByExample(SysResourceExample example);

    int deleteByExample(SysResourceExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SysResource record);

    int insertSelective(SysResource record);

    List<SysResource> selectByExample(SysResourceExample example);

    SysResource selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SysResource record, @Param("example") SysResourceExample example);

    int updateByExample(@Param("record") SysResource record, @Param("example") SysResourceExample example);

    int updateByPrimaryKeySelective(SysResource record);

    int updateByPrimaryKey(SysResource record);
    
    List<SysResource> selectByUserId_sql(Long pid,Long userId);
    
    List<SysResource> selectAllByUserId_sql(Long userId);
    
    List<SysResource> selectAllChildByUserId_sql(Long userId);
    
    List<SysResource> selectByPid(Long pid);
    
    List<SysResource> selectAllButtonByUserID(Long userId);
    
    
}